adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / RangeList<T> Class / Add Method / Add(String,Boolean) Method
The string to parse.
If true, any items in the string that cannot be parsed are ignored. If false, any invalid items cause the method to return false without adding any items.


In This Topic
    Add(String,Boolean) Method
    In This Topic
    Adds range values parsed from a string.
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal source As String, _
       Optional ByVal ignoreInvalidItems As Boolean _
    ) As Boolean

    Parameters

    source
    The string to parse.
    ignoreInvalidItems
    If true, any items in the string that cannot be parsed are ignored. If false, any invalid items cause the method to return false without adding any items.

    Return Value

    trueIf ignoreInvalidItems is true, always returns true. Otherwise, returns true if all items in the list were valid and added to the list. If the return value is false, the source contained one or more invalid values, and no items were added to the list.
    Remarks

    The source must contain zero or more range values, separated by ValueSeparator.

    See Also